package com.huawei.esdk.tp.device.smc;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

import com.huawei.esdk.platform.commu.itf.ICXFSOAPProtocolAdapter;

public class SoapCxfProxy implements InvocationHandler
{
    private ICXFSOAPProtocolAdapter adptr;

    public SoapCxfProxy(ICXFSOAPProtocolAdapter adptr)
    {
        this.adptr = adptr;
    }

    public Object invoke(Object proxy, Method m, Object[] args)
            throws Throwable// 此方法在代理类中
    {
        return adptr.syncSendMessageWithCxf(args[0], m.getDeclaringClass().getName(),
                m.getName());
    }
}
